/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.  
 */
package org.usfirst.frc675.Fred;

import java.util.Vector;

/**
 *
 * @author author
 * Creates a One Dimensional Array or a row/ column of lines
 */
public class DoubleArray1d {
     private Vector v;
    
    public DoubleArray1d(){
        v = new Vector();
        // creates a vector to hold double
    }
    
    public void add(double d){
        v.addElement(new Double(d));
    }
    
    public void remove(int i){
        v.removeElementAt(i);
    }
    
    public double get(int i){
        return ((Double) v.elementAt(i)).doubleValue();
    }
    
    public int size(){
        return v.size();
        // Tells how many items are in this vector
    }
    
    public String toString(){
        return v.toString();
        //Converts the array to a String to be sent to Aiming Calculator
        //for print purpose Only
    }
}

